package com.sharesrc.umangadownloader.server.core;

import org.jsoup.Connection;
import org.jsoup.Jsoup;

public enum ConnectionMgr {

	INSTANCE;

	private ConnectionMgr() {

	}

	public Connection connect(String url) {
		Connection conn = Jsoup.connect(url);
		conn.userAgent("Mozilla/5.0 (Windows NT 6.2; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0");
		conn.header("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8");
		conn.header("Accept-Language", "en-US,en;q=0.5");
		conn.header("Accept-Encoding", "gzip, deflate");
		conn.timeout(0);
		return conn;
	}
}
